import {Component, STATE, ATTRIBUTE,createElement} from './framework'
import {enabledGesture} from './gesture'

export {STATE, ATTRIBUTE} from './framework'

// 实现内容children
export class Button extends Component{
  constructor(){
    super()
  }

  render(){
    this.childContainer = <span/>
    this.root = (<div>{this.childContainer}</div>).render()
    return this.root
  }

  // 重载
  appendChild(child){
    // child.mountTo(this.root)
    if(!this.childContainer)
      this.render()
    this.childContainer.appendChild(child)
  }

}